<?php /*a:1:{s:65:"D:\wamp64\www\tpadmin\application\admin\view\admin\role\edit.html";i:1568113209;}*/ ?>
<div>
  <div class="main-title">
    <h2><?php if($id): ?>编辑<?php else: ?>新增<?php endif; ?>角色</h2>
  </div>
  <div class="main-section">
    <form method="post" action="<?php echo url('save'); ?>" class="j-form">
      <ul class="form-group form-inline">
        <li>
          <input type="text" class="form-control" name="name" value="<?php echo htmlentities($data['name']); ?>" required> <label>名称</label>
        </li>
        <li>
          <input type="hidden" name="id" value="<?php echo htmlentities($id); ?>">
          <input type="submit" value="提交表单" class="btn btn-primary">
          <a href="<?php echo url('index'); ?>" class="btn btn-default">返回列表</a>
        </li>
      </ul>
    </form>
  </div>
</div>
<script>
  main.ajaxForm('.j-form', function () {
    main.content("<?php echo url('index'); ?>");
  });
</script>